package com.wicket.okrbff.biz.service.impl;

import cn.hutool.core.bean.BeanUtil;
import com.wicket.okrapp.integration.dto.*;
import com.wicket.okrbff.biz.service.QuestionService;
import com.wicket.okrbff.biz.service.dto.common.BffVirtualOrgMemberDto;
import com.wicket.okrbff.biz.service.dto.req.*;
import com.wicket.okrbff.biz.service.dto.res.*;
import com.wicket.okrbff.common.ro.OkrResult;
import com.wicket.okrbff.common.ro.OkrResult;
import com.wicket.okrbff.common.util.CommonFunctionHelper;
import com.wicket.okrbff.common.util.RedisUtil;
import javax.annotation.Resource;

import com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComReqDto;
import com.wicket.okrframework.integration.dto.UserInfoDto;
import org.apache.skywalking.apm.toolkit.trace.Tag;
import org.apache.skywalking.apm.toolkit.trace.Tags;
import org.apache.skywalking.apm.toolkit.trace.Trace;
import org.springframework.stereotype.Service;
import com.wicket.okrapp.integration.FwAppQuestionClient;
import com.wicket.okrbff.common.exception.Assert;
import com.wicket.okrapp.integration.FwAppVirtualOrgClient;
import com.wicket.okrframework.integration.FwBaseNullClient;
import com.wicket.okrframework.integration.dto.BatchQueryUserinfoRespDto;
import com.wicket.okrframework.integration.dto.BatchQueryUserinfoReqDto;
import com.wicket.okrbff.biz.service.dto.common.BffQuestionDto;
import java.util.stream.Collectors;
import cn.hutool.core.collection.CollectionUtil;
import com.wicket.okrapp.integration.FwAppWorkTasksClient;
import com.wicket.okrframework.integration.FwBaseInductionRecordClient;
import com.wicket.okrframework.integration.dto.QueryInductionRecordInfoDetailComRespDto;
import com.wicket.okrframework.integration.dto.QueryInductionRecordInfoDetailComReqDto;
import com.wicket.okrbff.common.exception.BizException;
import com.wicket.okrframework.integration.FwBaseBatchClient;
import com.wicket.okrframework.integration.dto.ImplementLifeCycleJudgmentComRespDto;
import com.wicket.okrframework.integration.dto.ImplementLifeCycleJudgmentComReqDto;
import com.wicket.okrcomponent.integration.FwCompConfSchemeClient;
import com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComRespDto;
import com.wicket.okrapp.integration.FwAppDataSetSingleEntryClient;
import com.wicket.okrapp.integration.FwAppMessageClient;
import com.wicket.okrcomponent.integration.FwCompDataSetSingleEntryClient;
import com.wicket.okrcomponent.integration.dto.ImplementSingleSetDataEntryComRespDto;
import com.wicket.okrcomponent.integration.dto.ImplementSingleSetDataEntryComReqDto;

/**
 * @author ：
 * @date ：
 *
 *
 * @version 1.0
 */
@Service
public class QuestionServiceImpl implements QuestionService {

  @Resource
  private RedisUtil redisUtil;
@Resource
  FwAppQuestionClient fwAppQuestionClient;
@Resource
  FwAppVirtualOrgClient fwAppVirtualOrgClient;

@Resource
  FwBaseNullClient fwBaseNullClient;
@Resource
  FwAppWorkTasksClient fwAppWorkTasksClient;
@Resource
  FwBaseInductionRecordClient fwBaseInductionRecordClient;
@Resource
  FwBaseBatchClient fwBaseBatchClient;
@Resource
  FwCompConfSchemeClient fwCompConfSchemeClient;
@Resource
  FwAppDataSetSingleEntryClient fwAppDataSetSingleEntryClient;
@Resource
  FwAppMessageClient fwAppMessageClient;
@Resource
  FwCompDataSetSingleEntryClient fwCompDataSetSingleEntryClient;
/**
   * B3查询问题详情[7818]
   * gen by moon at 8/9/2024, 4:05:04 PM
   */
    @Trace(operationName = "B3查询问题详情")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryQuestionDetailRespDto queryQuestionDetail(BffQueryQuestionDetailReqDto reqDto){
      
       
       QueryQuestionDetailComRespDto queryQuestionDetailComRespDto_1 =null;
QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto_1 =null;
ObtainMainBodyObjectComRespDto obtainMainBodyObjectComRespDto_1 =null;
QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto_1 =null;
ObtainMainBodyObjectComRespDto obtainMainBodyObjectComRespDto_3 =null;
ObtainMainBodyObjectComRespDto obtainMainBodyObjectComRespDto_6 =null;
ImplementSingleSetDataEntryComRespDto implementSingleSetDataEntryComRespDto_1 =null;
//virtualUsage D3查询问题详情(公共)  52426
     QueryQuestionDetailComRespDto queryQuestionDetailComRespDto = null;
    QueryQuestionDetailComReqDto queryQuestionDetailComReqDto=new QueryQuestionDetailComReqDto();
  queryQuestionDetailComReqDto.setBizAppCode("LIGHT_OA_APP");//CUSTOM_CONVENTION//sourceId:1321954_1_52426
  queryQuestionDetailComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1264616_1_52426
if(reqDto!=null){
      queryQuestionDetailComReqDto.setQuestionId(reqDto.getQuestionId());//SimpleFieldAssign//sourceId:1264614_1_52426
queryQuestionDetailComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1264615_1_52426
    }
  
    /*D3查询问题详情(公共)[7817]   */
    Assert.isNull(queryQuestionDetailComReqDto.getBizAppCode(),"B3查询问题详情-D3查询问题详情(公共)-业务应用标识不能为空",false);
    Assert.isNull(queryQuestionDetailComReqDto.getSpaceId(),"B3查询问题详情-D3查询问题详情(公共)-创建于空间ID不能为空",false);
      queryQuestionDetailComRespDto = fwAppQuestionClient.queryQuestionDetailCom(queryQuestionDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      queryQuestionDetailComRespDto_1 = queryQuestionDetailComRespDto;
//virtualUsage D1-3查询个人就职记录信息详情（公共）  52427
      QueryInductionRecordInfoDetailComRespDto queryInductionRecordInfoDetailComRespDto = null;
    if(queryQuestionDetailComRespDto !=null){
          QueryInductionRecordInfoDetailComReqDto queryInductionRecordInfoDetailComReqDto=new QueryInductionRecordInfoDetailComReqDto();
  queryInductionRecordInfoDetailComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1270174_1_52427
if(queryQuestionDetailComRespDto!=null){
      queryInductionRecordInfoDetailComReqDto.setInductionRecordId(queryQuestionDetailComRespDto.getCreateInductionId());//SimpleFieldAssign//sourceId:1270148_1_52427
    }

    /*D1-3查询个人就职记录信息详情（公共）[715]   */
Assert.isNull(queryInductionRecordInfoDetailComReqDto.getSpaceId(),"B3查询问题详情-D1-3查询个人就职记录信息详情（公共）-创建于空间ID不能为空",false);
      queryInductionRecordInfoDetailComRespDto = fwBaseInductionRecordClient.queryInductionRecordInfoDetailCom(queryInductionRecordInfoDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryInductionRecordInfoDetailComRespDto_1 = queryInductionRecordInfoDetailComRespDto;
           }
//virtualUsage D3获取接收部门名称(公共)  52662
      ObtainMainBodyObjectComRespDto obtainMainBodyObjectComRespDto = null;
    if(queryQuestionDetailComRespDto !=null){
          ObtainMainBodyObjectComReqDto obtainMainBodyObjectComReqDto=new ObtainMainBodyObjectComReqDto();
  obtainMainBodyObjectComReqDto.setTableTypeCode("OMS_ORG_DEPT");//sourceId:1279882_1_52662
if(queryQuestionDetailComRespDto!=null){
      obtainMainBodyObjectComReqDto.setEntityId(queryQuestionDetailComRespDto.getReceiveSubjectId());//SimpleFieldAssign//sourceId:1279883_1_52662
    }

    /*D3获取接收部门名称(公共)[7859]   */
    Assert.isNull(obtainMainBodyObjectComReqDto.getTableTypeCode(),"B3查询问题详情-D3获取接收部门名称(公共)-内容表类型编码不能为空",false);
Assert.isNull(obtainMainBodyObjectComReqDto.getEntityId(),"B3查询问题详情-D3获取接收部门名称(公共)-内容表主键ID不能为空",false);
      obtainMainBodyObjectComRespDto = fwAppWorkTasksClient.obtainMainBodyObjectCom(obtainMainBodyObjectComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      obtainMainBodyObjectComRespDto_1 = obtainMainBodyObjectComRespDto;
           }
if((queryQuestionDetailComRespDto!= null&& queryQuestionDetailComRespDto.getSourceTypeCode() != null )) {
        //if(D3查询问题详情(公共).冗余来源类型编码 值不等于空 )  54642

QueryConfItemMatchAnswerDetailComRespDto queryConfItemMatchAnswerDetailComRespDto = null;
    if(queryQuestionDetailComRespDto !=null){
          com.wicket.okrcomponent.integration.dto.QueryConfItemMatchAnswerDetailComReqDto queryConfItemMatchAnswerDetailComReqDto=new QueryConfItemMatchAnswerDetailComReqDto();
  queryConfItemMatchAnswerDetailComReqDto.setResultAspObjId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1354115_1_54643
queryConfItemMatchAnswerDetailComReqDto.setResultAspObjType("TENANT_SPACE");//sourceId:1354116_1_54643
queryConfItemMatchAnswerDetailComReqDto.setConfItemCode("WROK_TASK_SOURCE_CONF");//CUSTOM_CONVENTION//sourceId:1354117_1_54643
queryConfItemMatchAnswerDetailComReqDto.setIsPlatData("FALSE");//sourceId:1354119_1_54643
if(queryQuestionDetailComRespDto!=null){
      queryConfItemMatchAnswerDetailComReqDto.setConfOptionCode(queryQuestionDetailComRespDto.getSourceTypeCode());//SimpleFieldAssign//sourceId:1354118_1_54643
    }

    /*D2查来源名称[2486]   */
    Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfOptionCode(),"B3查询问题详情-D2查来源名称-选项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjId(),"B3查询问题详情-D2查来源名称-开通对象ID不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getResultAspObjType(),"B3查询问题详情-D2查来源名称-开通对象类型编码不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getConfItemCode(),"B3查询问题详情-D2查来源名称-配置项标识不能为空",false);
Assert.isNull(queryConfItemMatchAnswerDetailComReqDto.getIsPlatData(),"B3查询问题详情-D2查来源名称-是否标准答案不能为空",false);
      queryConfItemMatchAnswerDetailComRespDto = fwCompConfSchemeClient.queryConfItemMatchAnswerDetailCom(queryConfItemMatchAnswerDetailComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      queryConfItemMatchAnswerDetailComRespDto_1 = queryConfItemMatchAnswerDetailComRespDto;
           }
      }
if((queryQuestionDetailComRespDto!= null&&  queryQuestionDetailComRespDto.getArrangeSubjectTypeCode() !=null && queryQuestionDetailComRespDto.getArrangeSubjectTypeCode().equals("OMS_ORG_ORGANIZATION"))) {
        //if(D3查询问题详情(公共).安排主体类型编码 等于 组织表)  52429

ObtainMainBodyObjectComRespDto obtainMainBodyObjectComRespDto_2 = null;
    if(queryQuestionDetailComRespDto !=null){
          ObtainMainBodyObjectComReqDto obtainMainBodyObjectComReqDto_1=new ObtainMainBodyObjectComReqDto();
  if(queryQuestionDetailComRespDto!=null){
      obtainMainBodyObjectComReqDto_1.setTableTypeCode(queryQuestionDetailComRespDto.getArrangeSubjectTypeCode());//SimpleFieldAssign//sourceId:1279886_1_52663
obtainMainBodyObjectComReqDto_1.setEntityId(queryQuestionDetailComRespDto.getArrangeSubjectId());//SimpleFieldAssign//sourceId:1279887_1_52663
    }

    /*D3获取安排主体对象名称[7859]   */
    Assert.isNull(obtainMainBodyObjectComReqDto_1.getTableTypeCode(),"B3查询问题详情-D3获取安排主体对象名称-内容表类型编码不能为空",false);
Assert.isNull(obtainMainBodyObjectComReqDto_1.getEntityId(),"B3查询问题详情-D3获取安排主体对象名称-内容表主键ID不能为空",false);
      obtainMainBodyObjectComRespDto_2 = fwAppWorkTasksClient.obtainMainBodyObjectCom(obtainMainBodyObjectComReqDto_1).getData()/*vcase invoke 跨dubbo调用;*/;


      obtainMainBodyObjectComRespDto_3 = obtainMainBodyObjectComRespDto_2;
           }
      }
else if((queryQuestionDetailComRespDto!= null&&  queryQuestionDetailComRespDto.getArrangeSubjectTypeCode() !=null && queryQuestionDetailComRespDto.getArrangeSubjectTypeCode().equals("OMS_ORG_DEPT"))){
       //elseif(D3查询问题详情(公共).安排主体类型编码 等于 部门表)  52430

ObtainMainBodyObjectComRespDto obtainMainBodyObjectComRespDto_4 = null;
    if(queryQuestionDetailComRespDto !=null){
          ObtainMainBodyObjectComReqDto obtainMainBodyObjectComReqDto_2=new ObtainMainBodyObjectComReqDto();
  if(queryQuestionDetailComRespDto!=null){
      obtainMainBodyObjectComReqDto_2.setTableTypeCode(queryQuestionDetailComRespDto.getArrangeSubjectTypeCode());//SimpleFieldAssign//sourceId:1279886_1_52664
obtainMainBodyObjectComReqDto_2.setEntityId(queryQuestionDetailComRespDto.getArrangeSubjectId());//SimpleFieldAssign//sourceId:1279887_1_52664
    }

    /*D3获取安排主体对象名称[7859]   */
    Assert.isNull(obtainMainBodyObjectComReqDto_2.getTableTypeCode(),"B3查询问题详情-D3获取安排主体对象名称-内容表类型编码不能为空",false);
Assert.isNull(obtainMainBodyObjectComReqDto_2.getEntityId(),"B3查询问题详情-D3获取安排主体对象名称-内容表主键ID不能为空",false);
      obtainMainBodyObjectComRespDto_4 = fwAppWorkTasksClient.obtainMainBodyObjectCom(obtainMainBodyObjectComReqDto_2).getData()/*vcase invoke 跨dubbo调用;*/;


      obtainMainBodyObjectComRespDto_3 = obtainMainBodyObjectComRespDto_4;
           }
    }
else{
       //else  52431

//异常结束 52432
      throw new BizException("500","系统异常，请联系管理员！",false);
    }
if((queryQuestionDetailComRespDto!= null&&  queryQuestionDetailComRespDto.getCoordObjectTypeCode() !=null && queryQuestionDetailComRespDto.getCoordObjectTypeCode().equals("OMS_TASK"))) {
        //if(D3查询问题详情(公共).归属对象类型编码 等于 任务表)  52434

ObtainMainBodyObjectComRespDto obtainMainBodyObjectComRespDto_5 = null;
    if(queryQuestionDetailComRespDto !=null){
          ObtainMainBodyObjectComReqDto obtainMainBodyObjectComReqDto_3=new ObtainMainBodyObjectComReqDto();
  if(queryQuestionDetailComRespDto!=null){
      obtainMainBodyObjectComReqDto_3.setTableTypeCode(queryQuestionDetailComRespDto.getCoordObjectTypeCode());//SimpleFieldAssign//sourceId:1279890_1_52665
obtainMainBodyObjectComReqDto_3.setEntityId(queryQuestionDetailComRespDto.getCoordObjectId());//SimpleFieldAssign//sourceId:1279891_1_52665
    }

    /*D3获取归属对象名称(公共)[7859]   */
    Assert.isNull(obtainMainBodyObjectComReqDto_3.getTableTypeCode(),"B3查询问题详情-D3获取归属对象名称(公共)-内容表类型编码不能为空",false);
Assert.isNull(obtainMainBodyObjectComReqDto_3.getEntityId(),"B3查询问题详情-D3获取归属对象名称(公共)-内容表主键ID不能为空",false);
      obtainMainBodyObjectComRespDto_5 = fwAppWorkTasksClient.obtainMainBodyObjectCom(obtainMainBodyObjectComReqDto_3).getData()/*vcase invoke 跨dubbo调用;*/;


      obtainMainBodyObjectComRespDto_6 = obtainMainBodyObjectComRespDto_5;
           }
      }
else if((queryQuestionDetailComRespDto!= null&&  queryQuestionDetailComRespDto.getCoordObjectTypeCode() !=null && queryQuestionDetailComRespDto.getCoordObjectTypeCode().equals("OMS_PROJECT"))){
       //elseif(D3查询问题详情(公共).归属对象类型编码 等于 项目表)  52435

ObtainMainBodyObjectComRespDto obtainMainBodyObjectComRespDto_7 = null;
    if(queryQuestionDetailComRespDto !=null){
          ObtainMainBodyObjectComReqDto obtainMainBodyObjectComReqDto_4=new ObtainMainBodyObjectComReqDto();
  if(queryQuestionDetailComRespDto!=null){
      obtainMainBodyObjectComReqDto_4.setTableTypeCode(queryQuestionDetailComRespDto.getCoordObjectTypeCode());//SimpleFieldAssign//sourceId:1279890_1_52666
obtainMainBodyObjectComReqDto_4.setEntityId(queryQuestionDetailComRespDto.getCoordObjectId());//SimpleFieldAssign//sourceId:1279891_1_52666
    }

    /*D3获取归属对象名称(公共)[7859]   */
    Assert.isNull(obtainMainBodyObjectComReqDto_4.getTableTypeCode(),"B3查询问题详情-D3获取归属对象名称(公共)-内容表类型编码不能为空",false);
Assert.isNull(obtainMainBodyObjectComReqDto_4.getEntityId(),"B3查询问题详情-D3获取归属对象名称(公共)-内容表主键ID不能为空",false);
      obtainMainBodyObjectComRespDto_7 = fwAppWorkTasksClient.obtainMainBodyObjectCom(obtainMainBodyObjectComReqDto_4).getData()/*vcase invoke 跨dubbo调用;*/;


      obtainMainBodyObjectComRespDto_6 = obtainMainBodyObjectComRespDto_7;
           }
    }
else if((queryQuestionDetailComRespDto!= null&&  queryQuestionDetailComRespDto.getCoordObjectTypeCode() !=null && queryQuestionDetailComRespDto.getCoordObjectTypeCode().equals("OMS_ORG_DEPT"))){
       //elseif(D3查询问题详情(公共).归属对象类型编码 等于 部门表)  52436

ObtainMainBodyObjectComRespDto obtainMainBodyObjectComRespDto_8 = null;
    if(queryQuestionDetailComRespDto !=null){
          ObtainMainBodyObjectComReqDto obtainMainBodyObjectComReqDto_5=new ObtainMainBodyObjectComReqDto();
  if(queryQuestionDetailComRespDto!=null){
      obtainMainBodyObjectComReqDto_5.setTableTypeCode(queryQuestionDetailComRespDto.getCoordObjectTypeCode());//SimpleFieldAssign//sourceId:1279890_1_52667
obtainMainBodyObjectComReqDto_5.setEntityId(queryQuestionDetailComRespDto.getCoordObjectId());//SimpleFieldAssign//sourceId:1279891_1_52667
    }

    /*D3获取归属对象名称(公共)[7859]   */
    Assert.isNull(obtainMainBodyObjectComReqDto_5.getTableTypeCode(),"B3查询问题详情-D3获取归属对象名称(公共)-内容表类型编码不能为空",false);
Assert.isNull(obtainMainBodyObjectComReqDto_5.getEntityId(),"B3查询问题详情-D3获取归属对象名称(公共)-内容表主键ID不能为空",false);
      obtainMainBodyObjectComRespDto_8 = fwAppWorkTasksClient.obtainMainBodyObjectCom(obtainMainBodyObjectComReqDto_5).getData()/*vcase invoke 跨dubbo调用;*/;


      obtainMainBodyObjectComRespDto_6 = obtainMainBodyObjectComRespDto_8;
           }
    }
else if((queryQuestionDetailComRespDto!= null&&  queryQuestionDetailComRespDto.getCoordObjectTypeCode() !=null && queryQuestionDetailComRespDto.getCoordObjectTypeCode().equals("OMS_FRAMEWORK_SPACE"))){
       //elseif(D3查询问题详情(公共).归属对象类型编码 等于 空间表)  52438

ObtainMainBodyObjectComRespDto obtainMainBodyObjectComRespDto_9 = null;
    if(queryQuestionDetailComRespDto !=null){
          ObtainMainBodyObjectComReqDto obtainMainBodyObjectComReqDto_6=new ObtainMainBodyObjectComReqDto();
  if(queryQuestionDetailComRespDto!=null){
      obtainMainBodyObjectComReqDto_6.setTableTypeCode(queryQuestionDetailComRespDto.getCoordObjectTypeCode());//SimpleFieldAssign//sourceId:1279890_1_52668
obtainMainBodyObjectComReqDto_6.setEntityId(queryQuestionDetailComRespDto.getCoordObjectId());//SimpleFieldAssign//sourceId:1279891_1_52668
    }

    /*D3获取归属对象名称(公共)[7859]   */
    Assert.isNull(obtainMainBodyObjectComReqDto_6.getTableTypeCode(),"B3查询问题详情-D3获取归属对象名称(公共)-内容表类型编码不能为空",false);
Assert.isNull(obtainMainBodyObjectComReqDto_6.getEntityId(),"B3查询问题详情-D3获取归属对象名称(公共)-内容表主键ID不能为空",false);
      obtainMainBodyObjectComRespDto_9 = fwAppWorkTasksClient.obtainMainBodyObjectCom(obtainMainBodyObjectComReqDto_6).getData()/*vcase invoke 跨dubbo调用;*/;


      obtainMainBodyObjectComRespDto_6 = obtainMainBodyObjectComRespDto_9;
           }
    }
else if((queryQuestionDetailComRespDto!= null&&  queryQuestionDetailComRespDto.getCoordObjectTypeCode() !=null && queryQuestionDetailComRespDto.getCoordObjectTypeCode().equals("OMS_TARGET_OBJECTIVE")||queryQuestionDetailComRespDto!= null&&  queryQuestionDetailComRespDto.getCoordObjectTypeCode() !=null && queryQuestionDetailComRespDto.getCoordObjectTypeCode().equals("OMS_TARGET_CATEGORY"))){
       //elseif((D3查询问题详情(公共).归属对象类型编码 等于 指标表 or D3查询问题详情(公共).归属对象类型编码 等于 目标分类表))  72094

ObtainMainBodyObjectComRespDto obtainMainBodyObjectComRespDto_10 = null;
    if(queryQuestionDetailComRespDto !=null){
          ObtainMainBodyObjectComReqDto obtainMainBodyObjectComReqDto_7=new ObtainMainBodyObjectComReqDto();
  if(queryQuestionDetailComRespDto!=null){
      obtainMainBodyObjectComReqDto_7.setTableTypeCode(queryQuestionDetailComRespDto.getCoordObjectTypeCode());//SimpleFieldAssign//sourceId:1279890_1_72095
obtainMainBodyObjectComReqDto_7.setEntityId(queryQuestionDetailComRespDto.getCoordObjectId());//SimpleFieldAssign//sourceId:1279891_1_72095
    }

    /*D3获取归属对象名称(公共)[7859]   */
    Assert.isNull(obtainMainBodyObjectComReqDto_7.getTableTypeCode(),"B3查询问题详情-D3获取归属对象名称(公共)-内容表类型编码不能为空",false);
Assert.isNull(obtainMainBodyObjectComReqDto_7.getEntityId(),"B3查询问题详情-D3获取归属对象名称(公共)-内容表主键ID不能为空",false);
      obtainMainBodyObjectComRespDto_10 = fwAppWorkTasksClient.obtainMainBodyObjectCom(obtainMainBodyObjectComReqDto_7).getData()/*vcase invoke 跨dubbo调用;*/;


      obtainMainBodyObjectComRespDto_6 = obtainMainBodyObjectComRespDto_10;
           }
    }
else{
       //else  52440

//异常结束 52441
      throw new BizException("500","系统异常，请联系管理员！",false);
    }
if((queryQuestionDetailComRespDto!= null&& queryQuestionDetailComRespDto.getQuestionImg() != null )) {
        //if(D3查询问题详情(公共).问题图片描述 值不等于空 )  54858

ImplementSingleSetDataEntryComRespDto implementSingleSetDataEntryComRespDto = null;
    if(queryQuestionDetailComRespDto !=null){
          ImplementSingleSetDataEntryComReqDto implementSingleSetDataEntryComReqDto=new ImplementSingleSetDataEntryComReqDto();
  if(queryQuestionDetailComRespDto!=null){
      implementSingleSetDataEntryComReqDto.setDatasetField(queryQuestionDetailComRespDto.getQuestionImg());//SimpleFieldAssign//sourceId:1815712_1_68955
    }

    /*D2执行单条图片转数据集(公共)[9603]   */
    Assert.isNull(implementSingleSetDataEntryComReqDto.getDatasetField(),"B3查询问题详情-D2执行单条图片转数据集(公共)-待转字段不能为空",false);
      implementSingleSetDataEntryComRespDto = fwCompDataSetSingleEntryClient.implementSingleSetDataEntryCom(implementSingleSetDataEntryComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      implementSingleSetDataEntryComRespDto_1 = implementSingleSetDataEntryComRespDto;
           }
      }
BffQueryQuestionDetailRespDto retData = new BffQueryQuestionDetailRespDto();
  if(queryQuestionDetailComRespDto_1!=null){
      retData.setQuestionId(queryQuestionDetailComRespDto_1.getQuestionId());//SimpleFieldAssign//sourceId:1264641_1
retData.setQuestionNumber(queryQuestionDetailComRespDto_1.getQuestionNumber());//SimpleFieldAssign//sourceId:1264642_1
retData.setQuestionIntroduce(queryQuestionDetailComRespDto_1.getQuestionIntroduce());//SimpleFieldAssign//sourceId:1264643_1
retData.setQuestionDesc(queryQuestionDetailComRespDto_1.getQuestionDesc());//SimpleFieldAssign//sourceId:1264644_1
retData.setQuestionLevel(queryQuestionDetailComRespDto_1.getQuestionLevel());//SimpleFieldAssign//sourceId:1264646_1
retData.setQuestionStatus(queryQuestionDetailComRespDto_1.getQuestionStatus());//SimpleFieldAssign//sourceId:1264647_1
retData.setRemarks(queryQuestionDetailComRespDto_1.getRemarks());//SimpleFieldAssign//sourceId:1264648_1
retData.setIsPrivate(queryQuestionDetailComRespDto_1.getIsPrivate());//SimpleFieldAssign//sourceId:1264649_1
retData.setIsOvertime(queryQuestionDetailComRespDto_1.getIsOvertime());//SimpleFieldAssign//sourceId:1310783_1
retData.setOverTimeLength(queryQuestionDetailComRespDto_1.getOverTimeLength());//SimpleFieldAssign//sourceId:1310784_1
retData.setActualSolveTime(queryQuestionDetailComRespDto_1.getActualSolveTime());//SimpleFieldAssign//sourceId:1264650_1
retData.setActualSolveCycle(queryQuestionDetailComRespDto_1.getActualSolveCycle());//SimpleFieldAssign//sourceId:1264651_1
retData.setArrangeSubjectId(queryQuestionDetailComRespDto_1.getArrangeSubjectId());//SimpleFieldAssign//sourceId:1264652_1
retData.setReceiveSubjectId(queryQuestionDetailComRespDto_1.getReceiveSubjectId());//SimpleFieldAssign//sourceId:1264653_1
retData.setSourceTypeCode(queryQuestionDetailComRespDto_1.getSourceTypeCode());//SimpleFieldAssign//sourceId:1264654_1
retData.setCoordObjectTypeCode(queryQuestionDetailComRespDto_1.getCoordObjectTypeCode());//SimpleFieldAssign//sourceId:1355944_1
retData.setCoordObjectId(queryQuestionDetailComRespDto_1.getCoordObjectId());//SimpleFieldAssign//sourceId:1264655_1
retData.setRelevantPeopleNum(queryQuestionDetailComRespDto_1.getRelevantPeopleNum());//SimpleFieldAssign//sourceId:1264656_1
retData.setSubjectLifeCycle(queryQuestionDetailComRespDto_1.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1264657_1
retData.setCreateInductionId(queryQuestionDetailComRespDto_1.getCreateInductionId());//SimpleFieldAssign//sourceId:1264658_1
retData.setCreateTime(queryQuestionDetailComRespDto_1.getCreateTime());//SimpleFieldAssign//sourceId:1264659_1
    }
if(obtainMainBodyObjectComRespDto_3!=null){
      retData.setArrangeSubjectName(obtainMainBodyObjectComRespDto_3.getObjectName());//SimpleFieldAssign//sourceId:1279895_1
    }
if(obtainMainBodyObjectComRespDto_1!=null){
      retData.setReceiveSubjectName(obtainMainBodyObjectComRespDto_1.getObjectName());//SimpleFieldAssign//sourceId:1279894_1
    }
if(queryConfItemMatchAnswerDetailComRespDto_1!=null){
      retData.setSourceName(queryConfItemMatchAnswerDetailComRespDto_1.getExtensionField2());//SimpleFieldAssign//sourceId:1355936_1
    }
if(obtainMainBodyObjectComRespDto_6!=null){
      retData.setCoordObjectName(obtainMainBodyObjectComRespDto_6.getObjectName());//SimpleFieldAssign//sourceId:1279896_1
    }
if(queryInductionRecordInfoDetailComRespDto_1!=null){
      retData.setUserId(queryInductionRecordInfoDetailComRespDto_1.getUserId());//SimpleFieldAssign//sourceId:1270175_1
retData.setUserFace(queryInductionRecordInfoDetailComRespDto_1.getUserFace());//SimpleFieldAssign//sourceId:1270178_1
retData.setIdCardName(queryInductionRecordInfoDetailComRespDto_1.getIdCardName());//SimpleFieldAssign//sourceId:1270176_1
retData.setNickName(queryInductionRecordInfoDetailComRespDto_1.getNickName());//SimpleFieldAssign//sourceId:1270177_1
    }
if(implementSingleSetDataEntryComRespDto_1!=null){
      retData.setDataListAllPathList(implementSingleSetDataEntryComRespDto_1.getSingleSetDataEntryList());//list-field-assign//sourceId:1362034_1
    }


  
  
return retData;
  }
/**
   * B3修改问题[7784]
   * gen by moon at 8/26/2024, 7:36:25 PM
   */
    @Trace(operationName = "B3修改问题")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffUpdateQuestionRespDto updateQuestion(BffUpdateQuestionReqDto reqDto){
      
       
       //步骤0: D3修改问题业务处理(公共) - updateQuestionBusinessProcessingCom
     UpdateQuestionBusinessProcessingComRespDto updateQuestionBusinessProcessingComRespDto = null;
    UpdateQuestionBusinessProcessingComReqDto updateQuestionBusinessProcessingComReqDto=new UpdateQuestionBusinessProcessingComReqDto();
  if(reqDto!=null){
      updateQuestionBusinessProcessingComReqDto.setQuestionId(reqDto.getQuestionId());//SimpleFieldAssign//sourceId:1277998_1
updateQuestionBusinessProcessingComReqDto.setStatusBizOptType(reqDto.getStatusBizOptType());//SimpleFieldAssign//sourceId:1467925_1
updateQuestionBusinessProcessingComReqDto.setQuestionStatus(reqDto.getQuestionStatus());//SimpleFieldAssign//sourceId:1318167_1
updateQuestionBusinessProcessingComReqDto.setRemarks(reqDto.getRemarks());//SimpleFieldAssign//sourceId:1318173_1
updateQuestionBusinessProcessingComReqDto.setQuestionNumber(reqDto.getQuestionNumber());//SimpleFieldAssign//sourceId:1277999_1
updateQuestionBusinessProcessingComReqDto.setQuestionIntroduce(reqDto.getQuestionIntroduce());//SimpleFieldAssign//sourceId:1278000_1
updateQuestionBusinessProcessingComReqDto.setQuestionLevel(reqDto.getQuestionLevel());//SimpleFieldAssign//sourceId:1278001_1
updateQuestionBusinessProcessingComReqDto.setQuestionDesc(reqDto.getQuestionDesc());//SimpleFieldAssign//sourceId:1278002_1
updateQuestionBusinessProcessingComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1278004_1
    }
if(reqDto!= null&&  reqDto.getDocumentList() !=null&& !CollectionUtil.isEmpty(reqDto.getDocumentList())){
      updateQuestionBusinessProcessingComReqDto.setBusAppDocRelaList(reqDto.getDocumentList().stream().map(item -> BeanUtil.toBean(item, BusAppDocRelaDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1361985_1
    }

    /*D3修改问题业务处理(公共)[7858]   */
    Assert.isNull(updateQuestionBusinessProcessingComReqDto.getQuestionId(),"B3修改问题-D3修改问题业务处理(公共)-问题ID不能为空",false);
      updateQuestionBusinessProcessingComRespDto = fwAppQuestionClient.updateQuestionBusinessProcessingCom(updateQuestionBusinessProcessingComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
    
BffUpdateQuestionRespDto retData = new BffUpdateQuestionRespDto();
  
  

  
  
return retData;
  }
/**
   * B3查问题列表[7789]
   * gen by moon at 1/16/2024, 6:43:42 PM
   */
    @Trace(operationName = "B3查问题列表")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffQueryQuestionListRespDto queryQuestionList(BffQueryQuestionListReqDto reqDto){
      
       
       QueryQuestionListComRespDto queryQuestionListComRespDto_1 =null;
BatchQueryVirtualOrgMemberComBorderRespDto batchQueryVirtualOrgMemberComBorderRespDto_1 =null;
//virtualUsage D3查询问题列表(公共)  52552
     QueryQuestionListComRespDto queryQuestionListComRespDto = null;
    QueryQuestionListComReqDto queryQuestionListComReqDto=new QueryQuestionListComReqDto();
  queryQuestionListComReqDto.setBizAppCode("LIGHT_OA_APP");//CUSTOM_CONVENTION//sourceId:1321930_1_52552
  if(reqDto!=null){
      queryQuestionListComReqDto.setBatchOperateScene(reqDto.getBatchOperateScene());//SimpleFieldAssign//sourceId:1367703_1_52552
      queryQuestionListComReqDto.setQuestionProposeTypeScreen(reqDto.getQuestionProposeTypeScreen());//SimpleFieldAssign//sourceId:1258836_1_52552
queryQuestionListComReqDto.setQuestionAngleScreen(reqDto.getQuestionAngleScreen());//SimpleFieldAssign//sourceId:1381544_1_52552
queryQuestionListComReqDto.setQuestionStatusScreen(reqDto.getQuestionStatusScreen());//SimpleFieldAssign//sourceId:1258837_1_52552
queryQuestionListComReqDto.setDeptId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1367705_1_52552
queryQuestionListComReqDto.setCreateInductionId(reqDto.getCreateInductionId());//SimpleFieldAssign//sourceId:1258848_1_52552
queryQuestionListComReqDto.setVirtualOrgInductionRecordId(reqDto.getVirtualOrgInductionRecordId());//SimpleFieldAssign//sourceId:1258859_1_52552
queryQuestionListComReqDto.setOriginalRoleMemberId(reqDto.getOriginalRoleMemberId());//SimpleFieldAssign//sourceId:1391830_1_52552
queryQuestionListComReqDto.setIsDirectStakeholders(reqDto.getIsDirectStakeholders());//SimpleFieldAssign//sourceId:1258860_1_52552
queryQuestionListComReqDto.setQuestionNumber(reqDto.getQuestionNumber());//SimpleFieldAssign//sourceId:1258847_1_52552
queryQuestionListComReqDto.setQuestionIntroduce(reqDto.getQuestionIntroduce());//SimpleFieldAssign//sourceId:1258838_1_52552
queryQuestionListComReqDto.setQuestionLevel(reqDto.getQuestionLevel());//SimpleFieldAssign//sourceId:1258839_1_52552
queryQuestionListComReqDto.setIsPrivate(reqDto.getIsPrivate());//SimpleFieldAssign//sourceId:1258840_1_52552
queryQuestionListComReqDto.setArrangeSubjectId(reqDto.getArrangeSubjectId());//SimpleFieldAssign//sourceId:1368823_1_52552
queryQuestionListComReqDto.setReceiveSubjectId(reqDto.getReceiveSubjectId());//SimpleFieldAssign//sourceId:1258846_1_52552
queryQuestionListComReqDto.setSourceTypeCode(reqDto.getSourceTypeCode());//SimpleFieldAssign//sourceId:1258841_1_52552
queryQuestionListComReqDto.setCoordObjectId(reqDto.getCoordObjectId());//SimpleFieldAssign//sourceId:1258842_1_52552
queryQuestionListComReqDto.setCreateTime(reqDto.getCreateTime());//SimpleFieldAssign//sourceId:1258844_1_52552
    }
  
    /*D3查询问题列表(公共)[7759]   */
Assert.isNull(queryQuestionListComReqDto.getQuestionStatusScreen(),"B3查问题列表-D3查询问题列表(公共)-问题状态筛选条件不能为空",false);
Assert.isNull(queryQuestionListComReqDto.getBizAppCode(),"B3查问题列表-D3查询问题列表(公共)-业务应用标识不能为空",false);
      queryQuestionListComRespDto = fwAppQuestionClient.queryQuestionListCom(queryQuestionListComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      queryQuestionListComRespDto_1 = queryQuestionListComRespDto;
//virtualUsage D3批量查问题相关人列表  52553
     BatchQueryVirtualOrgMemberComBorderRespDto batchQueryVirtualOrgMemberComBorderRespDto = null;
    if(queryQuestionListComRespDto !=null){
          BatchQueryVirtualOrgMemberComBorderReqDto batchQueryVirtualOrgMemberComBorderReqDto=new BatchQueryVirtualOrgMemberComBorderReqDto();
if(queryQuestionListComRespDto!= null&&  queryQuestionListComRespDto.getQuestionList() !=null&& !CollectionUtil.isEmpty(queryQuestionListComRespDto.getQuestionList())){
      batchQueryVirtualOrgMemberComBorderReqDto.setVirtualOrgMemberList(queryQuestionListComRespDto.getQuestionList().stream().map(item->item.getQuestionId())
        .collect(Collectors.toList()));/*list-to-strings*///sourceId:1258961_1_52553
    }
  
    /*D3批量查问题相关人列表[2944]   */

      batchQueryVirtualOrgMemberComBorderRespDto = fwAppVirtualOrgClient.batchQueryVirtualOrgMemberComBorder(batchQueryVirtualOrgMemberComBorderReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      batchQueryVirtualOrgMemberComBorderRespDto_1 = batchQueryVirtualOrgMemberComBorderRespDto;
           }
//virtualUsage D3异步更新问题偏差时长等(公共)  52559
      ImplementAsyncRefreshWorkContOverdueRelateComRespDto implementAsyncRefreshWorkContOverdueRelateComRespDto = null;
    if(queryQuestionListComRespDto !=null){
          ImplementAsyncRefreshWorkContOverdueRelateComReqDto implementAsyncRefreshWorkContOverdueRelateComReqDto=new ImplementAsyncRefreshWorkContOverdueRelateComReqDto();
  implementAsyncRefreshWorkContOverdueRelateComReqDto.setCreateInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:1274855_1_52559
implementAsyncRefreshWorkContOverdueRelateComReqDto.setSpaceId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecSpaceId());//CURRENT_SPACEID//sourceId:1274856_1_52559
implementAsyncRefreshWorkContOverdueRelateComReqDto.setAppId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecAppId());//CURRENT_APPID//sourceId:1274857_1_52559
if(queryQuestionListComRespDto!= null&&  queryQuestionListComRespDto.getQuestionList() !=null&& !CollectionUtil.isEmpty(queryQuestionListComRespDto.getQuestionList())){
      implementAsyncRefreshWorkContOverdueRelateComReqDto.setWorkTaskObjectTypeList(//objList-to-objLists
        queryQuestionListComRespDto.getQuestionList().stream().map(item -> {
      WorkTaskObjectTypeDto elm = new WorkTaskObjectTypeDto();
      elm.setWorkTaskObjectType("PROBLEM");//sourceId:261968_2_52559
if(item!=null){
      elm.setWorkTaskObjectId(item.getQuestionId());//SimpleFieldAssign//sourceId:261969_2_52559
elm.setOperateTime(item.getOperateTime());//SimpleFieldAssign//sourceId:261970_2_52559
elm.setSubjectLifeCycle(item.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:293201_2_52559
    }
        return elm;
      }).collect(Collectors.toList()));//objList-to-objLists//sourceId:1274766_1_52559
    }

    /*D3异步更新问题偏差时长等(公共)[7848]   */
    Assert.isNull(implementAsyncRefreshWorkContOverdueRelateComReqDto.getCreateInductionId(),"B3查问题列表-D3异步更新问题偏差时长等(公共)-创建人就职记录ID 不能为空",false);
Assert.isNull(implementAsyncRefreshWorkContOverdueRelateComReqDto.getSpaceId(),"B3查问题列表-D3异步更新问题偏差时长等(公共)-创建于空间ID不能为空",false);
Assert.isNull(implementAsyncRefreshWorkContOverdueRelateComReqDto.getAppId(),"B3查问题列表-D3异步更新问题偏差时长等(公共)-创建于联盟应用ID不能为空",false);
      implementAsyncRefreshWorkContOverdueRelateComRespDto = fwAppWorkTasksClient.implementAsyncRefreshWorkContOverdueRelateCom(implementAsyncRefreshWorkContOverdueRelateComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
//virtualUsage D3异步托底更新内容状态消息数量(公共)  57104
      BottomUpdateNumberContentStatusMessagesComRespDto bottomUpdateNumberContentStatusMessagesComRespDto = null;
    if(queryQuestionListComRespDto !=null){
          BottomUpdateNumberContentStatusMessagesComReqDto bottomUpdateNumberContentStatusMessagesComReqDto=new BottomUpdateNumberContentStatusMessagesComReqDto();
  bottomUpdateNumberContentStatusMessagesComReqDto.setSceneOfUpdateStatus("SCENE_OF_WORK_TASK");//sourceId:1431460_1_57104
bottomUpdateNumberContentStatusMessagesComReqDto.setWorkTaskObjectType("PROBLEM");//sourceId:1431461_1_57104
if(reqDto!=null){
      bottomUpdateNumberContentStatusMessagesComReqDto.setBatchOperateScene(reqDto.getBatchOperateScene());//SimpleFieldAssign//sourceId:1431455_1_57104
bottomUpdateNumberContentStatusMessagesComReqDto.setQuestionProposeTypeScreen(reqDto.getQuestionProposeTypeScreen());//SimpleFieldAssign//sourceId:1431454_1_57104
bottomUpdateNumberContentStatusMessagesComReqDto.setQuestionAngleScreen(reqDto.getQuestionAngleScreen());//SimpleFieldAssign//sourceId:1431464_1_57104
bottomUpdateNumberContentStatusMessagesComReqDto.setQuestionStatusScreen(reqDto.getQuestionStatusScreen());//SimpleFieldAssign//sourceId:1431453_1_57104
bottomUpdateNumberContentStatusMessagesComReqDto.setEntityId(reqDto.getDeptId());//SimpleFieldAssign//sourceId:1481851_1_57104
    }
if(queryQuestionListComRespDto!=null){
      bottomUpdateNumberContentStatusMessagesComReqDto.setTotals(queryQuestionListComRespDto.getTotals());//SimpleFieldAssign//sourceId:1431462_1_57104
    }

//    /*D3异步托底更新内容状态消息数量(公共)[8076]   */
//    Assert.isNull(bottomUpdateNumberContentStatusMessagesComReqDto.getSceneOfUpdateStatus(),"B3查问题列表-D3异步托底更新内容状态消息数量(公共)-状态更新使用场景不能为空",false);
//Assert.isNull(bottomUpdateNumberContentStatusMessagesComReqDto.getWorkTaskObjectType(),"B3查问题列表-D3异步托底更新内容状态消息数量(公共)-工作任务对象类型不能为空",false);
//      bottomUpdateNumberContentStatusMessagesComRespDto = fwAppMessageClient.bottomUpdateNumberContentStatusMessagesCom(bottomUpdateNumberContentStatusMessagesComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;



           }
BffQueryQuestionListRespDto retData = new BffQueryQuestionListRespDto();
if(queryQuestionListComRespDto_1!=null){
      retData.setQuestionList(queryQuestionListComRespDto_1.getQuestionList().stream().map(item -> BeanUtil.toBean(item, BffQuestionDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1258985_1
      retData.setTotals(queryQuestionListComRespDto_1.getTotals());//SimpleFieldAssign//sourceId:1396331_1
    }
if(batchQueryVirtualOrgMemberComBorderRespDto_1!=null){
      retData.setVirtualOrgMemberList(batchQueryVirtualOrgMemberComBorderRespDto_1.getVirtualOrgMemberList().stream().map(item -> BeanUtil.toBean(item, BffVirtualOrgMemberDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1311570_1
    }


  retData.setPageNum(queryQuestionListComRespDto.getPageNum());
        retData.setPageSize(queryQuestionListComRespDto.getPageSize());
        retData.setTotal(queryQuestionListComRespDto.getTotalNum());
        retData.setIsLastPage((Math.ceil(Double.valueOf(queryQuestionListComRespDto.getTotalNum()) / Double.valueOf(queryQuestionListComRespDto.getPageSize()))) <= retData.getPageNum());
        
  
return retData;
  }
/**
   * B3删除问题[7807]
   * gen by moon at 11/10/2023, 3:58:07 PM
   */
    @Trace(operationName = "B3删除问题")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffDeleteQuestionRespDto deleteQuestion(BffDeleteQuestionReqDto reqDto){
      
       
       //步骤0: D3删除问题业务处理(公共) - deleteQuestionBusinessProcessingCom
     DeleteQuestionBusinessProcessingComRespDto deleteQuestionBusinessProcessingComRespDto = null;
    DeleteQuestionBusinessProcessingComReqDto deleteQuestionBusinessProcessingComReqDto=new DeleteQuestionBusinessProcessingComReqDto();
  if(reqDto!=null){
      deleteQuestionBusinessProcessingComReqDto.setQuestionId(reqDto.getQuestionId());//SimpleFieldAssign//sourceId:1280188_1
    }
  
    /*D3删除问题业务处理(公共)[7864]   */
    Assert.isNull(deleteQuestionBusinessProcessingComReqDto.getQuestionId(),"B3删除问题-D3删除问题业务处理(公共)-问题ID不能为空",false);
      deleteQuestionBusinessProcessingComRespDto = fwAppQuestionClient.deleteQuestionBusinessProcessingCom(deleteQuestionBusinessProcessingComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
    
BffDeleteQuestionRespDto retData = new BffDeleteQuestionRespDto();
  
  

  
  
return retData;
  }
/**
   * B3存档问题[7810]
   * gen by moon at 11/8/2023, 4:24:39 PM
   */
    @Trace(operationName = "B3存档问题")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffArchiveQuestionRespDto archiveQuestion(BffArchiveQuestionReqDto reqDto){
      
       
       //步骤0: D3存档问题 - archiveQuestion
     ArchiveQuestionRespDto archiveQuestionRespDto = null;
    ArchiveQuestionReqDto archiveQuestionReqDto=new ArchiveQuestionReqDto();
  if(reqDto!=null){
      archiveQuestionReqDto.setQuestionId(reqDto.getQuestionId());//SimpleFieldAssign//sourceId:1263868_1
archiveQuestionReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1264680_1
archiveQuestionReqDto.setIsArchive(reqDto.getIsArchive());//SimpleFieldAssign//sourceId:1264681_1
    }
  
    /*D3存档问题[7809]   */
    Assert.isNull(archiveQuestionReqDto.getQuestionId(),"B3存档问题-D3存档问题-问题ID不能为空",false);
Assert.isNull(archiveQuestionReqDto.getSubjectLifeCycle(),"B3存档问题-D3存档问题-主体生命周期不能为空",false);
Assert.isNull(archiveQuestionReqDto.getIsArchive(),"B3存档问题-D3存档问题-是否存档不能为空",false);
      archiveQuestionRespDto = fwAppQuestionClient.archiveQuestion(archiveQuestionReqDto).getData()/*vcase invoke 跨dubbo调用;*/;
      
      
      
    
BffArchiveQuestionRespDto retData = new BffArchiveQuestionRespDto();
  
  

  
  
return retData;
  }
/**
   * B3新增问题[7786]
   * gen by moon at 8/26/2024, 7:36:28 PM
   */
    @Trace(operationName = "B3新增问题")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffAddQuestionRespDto addQuestion(BffAddQuestionReqDto reqDto){


       AddQuestionBusinessProcessingComRespDto addQuestionBusinessProcessingComRespDto_1 =null;
//步骤0: D3新增问题业务处理(公共) - addQuestionBusinessProcessingCom
     AddQuestionBusinessProcessingComRespDto addQuestionBusinessProcessingComRespDto = null;
    AddQuestionBusinessProcessingComReqDto addQuestionBusinessProcessingComReqDto=new AddQuestionBusinessProcessingComReqDto();
  addQuestionBusinessProcessingComReqDto.setCreateInductionId(CommonFunctionHelper.getBaseInfoFromLocal().getSpecInductionRecordId());//CURRENT_INDUCTIONID//sourceId:1403632_1
  if(reqDto!=null){
      addQuestionBusinessProcessingComReqDto.setQuestionNumber(reqDto.getQuestionNumber());//SimpleFieldAssign//sourceId:1276747_1
addQuestionBusinessProcessingComReqDto.setQuestionIntroduce(reqDto.getQuestionIntroduce());//SimpleFieldAssign//sourceId:1276748_1
addQuestionBusinessProcessingComReqDto.setQuestionDesc(reqDto.getQuestionDesc());//SimpleFieldAssign//sourceId:1276749_1
addQuestionBusinessProcessingComReqDto.setQuestionLevel(reqDto.getQuestionLevel());//SimpleFieldAssign//sourceId:1276751_1
addQuestionBusinessProcessingComReqDto.setSourceTypeCode(reqDto.getSourceTypeCode());//SimpleFieldAssign//sourceId:1276752_1
addQuestionBusinessProcessingComReqDto.setArrangeSubjectId(reqDto.getArrangeSubjectId());//SimpleFieldAssign//sourceId:1276753_1
addQuestionBusinessProcessingComReqDto.setArrangeSubjectTypeCode(reqDto.getArrangeSubjectTypeCode());//SimpleFieldAssign//sourceId:1276754_1
addQuestionBusinessProcessingComReqDto.setCoordObjectTypeCode(reqDto.getCoordObjectTypeCode());//SimpleFieldAssign//sourceId:1276755_1
addQuestionBusinessProcessingComReqDto.setCoordObjectId(reqDto.getCoordObjectId());//SimpleFieldAssign//sourceId:1276756_1
addQuestionBusinessProcessingComReqDto.setTableTypeCode(reqDto.getTableTypeCode());//SimpleFieldAssign//sourceId:1276757_1
addQuestionBusinessProcessingComReqDto.setEntityId(reqDto.getEntityId());//SimpleFieldAssign//sourceId:1276758_1
addQuestionBusinessProcessingComReqDto.setParentTableTypeCode(reqDto.getParentTableTypeCode());//SimpleFieldAssign//sourceId:1276759_1
addQuestionBusinessProcessingComReqDto.setParentEntityId(reqDto.getParentEntityId());//SimpleFieldAssign//sourceId:1276760_1
addQuestionBusinessProcessingComReqDto.setThemeContentTypeCode(reqDto.getThemeContentTypeCode());//SimpleFieldAssign//sourceId:1276761_1
addQuestionBusinessProcessingComReqDto.setThemeContentId(reqDto.getThemeContentId());//SimpleFieldAssign//sourceId:1276762_1
addQuestionBusinessProcessingComReqDto.setPrincipalInductionId(reqDto.getPrincipalInductionId());//SimpleFieldAssign//sourceId:1312870_1
addQuestionBusinessProcessingComReqDto.setSubjectLifeCycle(reqDto.getSubjectLifeCycle());//SimpleFieldAssign//sourceId:1276764_1
    }
if(reqDto!= null&&  reqDto.getDocumentList() !=null&& !CollectionUtil.isEmpty(reqDto.getDocumentList())){
      addQuestionBusinessProcessingComReqDto.setBusAppDocRelaList(reqDto.getDocumentList().stream().map(item -> BeanUtil.toBean(item, BusAppDocRelaDto.class)).collect(Collectors.toList()));//objList-to-objLists//sourceId:1988879_1
    }

    /*D3新增问题业务处理(公共)[7854]   */
    Assert.isNull(addQuestionBusinessProcessingComReqDto.getQuestionIntroduce(),"B3新增问题-D3新增问题业务处理(公共)-问题文字简介不能为空",false);
Assert.isNull(addQuestionBusinessProcessingComReqDto.getQuestionLevel(),"B3新增问题-D3新增问题业务处理(公共)-问题等级不能为空",false);
Assert.isNull(addQuestionBusinessProcessingComReqDto.getArrangeSubjectId(),"B3新增问题-D3新增问题业务处理(公共)-安排主体ID不能为空",false);
Assert.isNull(addQuestionBusinessProcessingComReqDto.getArrangeSubjectTypeCode(),"B3新增问题-D3新增问题业务处理(公共)-安排主体类型编码不能为空",false);
Assert.isNull(addQuestionBusinessProcessingComReqDto.getCreateInductionId(),"B3新增问题-D3新增问题业务处理(公共)-创建人就职记录ID不能为空",false);
Assert.isNull(addQuestionBusinessProcessingComReqDto.getPrincipalInductionId(),"B3新增问题-D3新增问题业务处理(公共)-负责人就职记录ID不能为空",false);
Assert.isNull(addQuestionBusinessProcessingComReqDto.getSubjectLifeCycle(),"B3新增问题-D3新增问题业务处理(公共)-主体生命周期不能为空",false);
      addQuestionBusinessProcessingComRespDto = fwAppQuestionClient.addQuestionBusinessProcessingCom(addQuestionBusinessProcessingComReqDto).getData()/*vcase invoke 跨dubbo调用;*/;


      addQuestionBusinessProcessingComRespDto_1 = addQuestionBusinessProcessingComRespDto;

BffAddQuestionRespDto retData = new BffAddQuestionRespDto();
  if(addQuestionBusinessProcessingComRespDto_1!=null){
      retData.setQuestionId(addQuestionBusinessProcessingComRespDto_1.getQuestionId());//SimpleFieldAssign//sourceId:1276813_1
retData.setPrincipalVirtualOrgMemberId(addQuestionBusinessProcessingComRespDto_1.getPrincipalVirtualOrgMemberId());//SimpleFieldAssign//sourceId:1276814_1
    }




return retData;
  }
/**
   * B3设问题挂起[7880]
   * gen by moon at 11/12/2023, 4:20:30 AM
   */
    @Trace(operationName = "B3设问题挂起")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffSetQuestionHangUpRespDto setQuestionHangUp(BffSetQuestionHangUpReqDto reqDto){


       //步骤0: D3设问题挂起 - setQuestionHangUp
     SetQuestionHangUpRespDto setQuestionHangUpRespDto = null;
    SetQuestionHangUpReqDto setQuestionHangUpReqDto=new SetQuestionHangUpReqDto();
  if(reqDto!=null){
      setQuestionHangUpReqDto.setQuestionId(reqDto.getQuestionId());//SimpleFieldAssign//sourceId:1285601_1
setQuestionHangUpReqDto.setQuestionStatus(reqDto.getQuestionStatus());//SimpleFieldAssign//sourceId:1285602_1
    }

    /*D3设问题挂起[7881]   */
    Assert.isNull(setQuestionHangUpReqDto.getQuestionId(),"B3设问题挂起-D3设问题挂起-问题ID不能为空",false);
Assert.isNull(setQuestionHangUpReqDto.getQuestionStatus(),"B3设问题挂起-D3设问题挂起-问题状态不能为空",false);
     // setQuestionHangUpRespDto = fwAppQuestionClient.setQuestionHangUp(setQuestionHangUpReqDto)/*vcase invoke 跨dubbo调用;*/;




BffSetQuestionHangUpRespDto retData = new BffSetQuestionHangUpRespDto();





return retData;
  }
/**
   * B3设问题拒绝[7882]
   * gen by moon at 11/12/2023, 4:20:30 AM
   */
    @Trace(operationName = "B3设问题拒绝")
    @Tags({@Tag(key = "参数",value = "arg[0]"),
            @Tag(key = "返回值",value = "returnedObj")})
  @Override
  public BffSetQuestionTurnDownRespDto setQuestionTurnDown(BffSetQuestionTurnDownReqDto reqDto){


       //步骤0: D3设问题拒绝 - setQuestionTurnDown
     SetQuestionTurnDownRespDto setQuestionTurnDownRespDto = null;
    SetQuestionTurnDownReqDto setQuestionTurnDownReqDto=new SetQuestionTurnDownReqDto();
  if(reqDto!=null){
      setQuestionTurnDownReqDto.setQuestionId(reqDto.getQuestionId());//SimpleFieldAssign//sourceId:1285624_1
setQuestionTurnDownReqDto.setQuestionStatus(reqDto.getQuestionStatus());//SimpleFieldAssign//sourceId:1285625_1
    }

    /*D3设问题拒绝[7883]   */
    Assert.isNull(setQuestionTurnDownReqDto.getQuestionId(),"B3设问题拒绝-D3设问题拒绝-问题ID不能为空",false);
Assert.isNull(setQuestionTurnDownReqDto.getQuestionStatus(),"B3设问题拒绝-D3设问题拒绝-问题状态不能为空",false);
     // setQuestionTurnDownRespDto = fwAppQuestionClient.setQuestionTurnDown(setQuestionTurnDownReqDto)/*vcase invoke 跨dubbo调用;*/;




BffSetQuestionTurnDownRespDto retData = new BffSetQuestionTurnDownRespDto();





return retData;
  }
  //
}
